/**
 * @(#)PageInfo.java 2011-10-9
 * 
 * Copyright 2000-2011 by ChinanetCenter Corporation.
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ChinanetCenter Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with ChinanetCenter.
 * 
 */

package com.szf.base.web.gt;

import java.io.Serializable;

public class PageInfo implements Serializable {

	private static final long serialVersionUID = -455214368372501157L;

	/** To specify index of current page. */
	public int pageNum;

	/** To specify how many records are presented per page. */
	public int pageSize;

	/** First row index of this page. */
	public int startRowNum;

	/** To specify total number of rows. */
	public int totalRowNum = 0;

	public PageInfo() {
	}

	public PageInfo(int totalRowNum) {
		this.totalRowNum = totalRowNum;
	}

	/**
	 * @return the pageNum
	 */
	public int getPageNum() {
		return pageNum;
	}

	/**
	 * @param pageNum the pageNum to set
	 */
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	/**
	 * @return the pageSize
	 */
	public int getPageSize() {
		return pageSize;
	}

	/**
	 * @param pageSize the pageSize to set
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	/**
	 * @return the startRowNum
	 */
	public int getStartRowNum() {
		return startRowNum;
	}

	/**
	 * @param startRowNum the startRowNum to set
	 */
	public void setStartRowNum(int startRowNum) {
		this.startRowNum = startRowNum;
	}

	/**
	 * @return the totalRowNum
	 */
	public int getTotalRowNum() {
		return totalRowNum;
	}

	/**
	 * @param totalRowNum the totalRowNum to set
	 */
	public void setTotalRowNum(int totalRowNum) {
		this.totalRowNum = totalRowNum;
	}

}
